import { request } from './request'
//获取室温监测列表
export const getAlllList = (comID: number, village: string, building: string, unit: string, page: number, limit: number) => request.post('/equipment/GetALLswlistS', { comID, village, building, unit, page, limit })
//获取室温
export const getEchats = (comID: number, roomID: number) => request.post('/equipment/GetHistoryTempByRoomID', { comID, roomID })
//获取所有小区
export const getAllVillage = (comID: number) => request.post('/basic/selectVillageByComID', { comID })
//获取楼栋
export const getAllBuilding = (comID: number, villageID: number, villageName: string) => request.post('/basic/Getbuildinglist', { comID, villageID, villageName })
//获取单元
export const getAllUnit = (comID: number, buildingID: number, buildingName: string) => request.post('/basic/Getunitlist', { comID, buildingID, buildingName })
//获取住户
export const GetRoomByUnitID = (unitID: number, comID: number) => request.post('/basic/GetRoomByUnitID', { unitID, comID })
//获取住户信息
export const findInfosByHouseID = (comID: number, houseID: number) => request.post('/basic/findInfosByHouseID', { comID, houseID })
//获取维修工
export const findeRepairPerson = (userID: number, comID: number) => request.post('/request/findeRepairPerson', { userID, comID })
//知识库查询
export const findMaintenanceCause = (comID: number) => request.post('/request/findMaintenanceCause', { comID })
//分类ID查询知识库内容
export const findReasonByID = (ID: number, comID: number) => request.post('/request/findReasonByID', { ID, comID })
//派单
export const insertRequestInfo = (data: any) => request.post('/request/insertRequestInfo', { ...data })
//住户诊断信息展示
export const findAllInfo = (comID: number, selectTime: string, villageID: number, page: number, limit: number) => request.post('/heatMeter/findAllInfo', { comID: comID, selectTime: selectTime, villageID: villageID, page: page, limit: limit })
//诊断小区
export const MetervillageServer = (comID: number) => request.post('/heatMeter/findHeatMeterVillageServer', { comID: comID })